package com.jarvis.dubbo;

import com.jarvis.dubbo.pojo.ValidationModel;
import com.jarvis.dubbo.service.IStubService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * TODO XXX
 *
 * @author jarvis
 * created in 2020/9/17
 */
public class StubConsumer {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("spring-context-consumer.xml");
        IStubService stubService = classPathXmlApplicationContext.getBean(IStubService.class);
        System.out.println(stubService.echoHello(new ValidationModel()));
        System.out.println(stubService.echoHello(new ValidationModel("jarvis", "1")));
    }
}
